home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Magazine
/
WiredWorld
/
THOR_2.5_upgrade
/
rexx
/
NCommPollCurrent.thor
< prev
next >
Wrap
Text File
|
1997-09-15
|
1KB
|
54 lines
/* NCommPollCurrent.thor by Troels Walsted Hansen
** $VER: NCommPollCurrent.thor 1.6 (1.11.94)
**
** An ARexx script that automates NComm dialing of the
** currently hi-lighted BBS (in the Startup Window) or
** the currently open BBS.
**
** IMPORTANT: To use this script, the BBSs configured in THOR must
** have the same name as those in your NComm phonebook.
**
** New: No new features for 1.06.
*/
options results
/* needs THOR functions */
p = ' ' || address() || ' ' || show('P',,)
thorport = pos(' THOR.',p)
if thorport > 0 then thorport = word(substr(p,thorport+1),1)
else
do
say 'No THOR port found!'
exit 10
end
address(thorport)
CURRENTBBS stem CURRENT
/* Is NComm already running? If not, start it... */
if ~show('p', 'ncomm') then
do
if ~exists("t:NCommStartupScript") then
do
call open(nscript, "t:NCommStartupScript", W)
call writeln(nscript, "stack 10000")
call writeln(nscript, "cd NComm:")
call writeln(nscript, "run <>nil: NComm")
call close(nscript)
end
address command
"execute >nil: t:NCommStartupScript"
"WaitForPort ncomm"
if(rc) then exit
end
address 'ncomm'
NCOMMTOFRONT
DIAL CURRENT.BBSNAME
exit